package com.fk.servlet;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.fk.dao.impl.DesignerDaoImpl;
import com.fk.entity.Designer;

/**
 * Servlet implementation class AboutServlet
 */
public class AboutServlet extends HttpServlet {
	
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		DesignerDaoImpl desDao = new DesignerDaoImpl();
		List<Designer> desList = desDao.getDesignerList();
		request.setAttribute("desList", desList);
		request.getRequestDispatcher("about.jsp").forward(request, response);
	}

	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		doGet(request, response);
	}

}
